<?php

namespace App\Http\Requests\Admin\CollCategory;
use App\Http\Requests\Request;

class CreateRequest extends Request{
    public function authorize(){
        return true;
    }
    public function rules(){
        return [
            'cate_name' => 'required',
            'sign' => 'required|unique:coll_category,sign',
        ];
    }
    public function messages(){
        return [
            'cate_name.required' => '分类名称必须填写',
            'sign.required' => '分类标识必须填写',
            'sign.unique' => '分类标识必须已经存在',
        ];
    }
}
